<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace app\common\common;

/**
 * Description of Contents
 *
 * @author tommy.pan
 */
class Constants {

    //会员状态潜客 粉丝 会员
    public static $memberStatus = ['potential' => 0, 'follower' => 1, 'registered' => 2];
    //URL方法
    public static $pushArvartoFunc = [
        'newMember'       => 'member/new-member',
        'bindOpenid'      => 'member/bind-openid',
        'updateMember'    => 'member/update-member',
        'cardEnabled'     => 'member/card-enabled',
        'newReserve'      => 'reserve/new-reserve',
        'updateReserve'   => 'reserve/update-reserve',
        'memberSignIn'    => 'member/shop-sign-in',
        'newServiceOrder' => 'opto/new-optometrist',
        'newComment'      => 'opto/new-opto-comment',
        'addFamily'       => 'member/add-family',
        'removeFamily'    => 'member/remove-family',
        'addImpression'   => 'member/add-impression',
        'removeFans'   => 'member/remove-fans',
    ];
    //key值
    public static $pushArvartoKey = ['dataArvato' => 'data_arvato'];
    // 手机号认证状态
    static $mobileStatus = [
        'certified'    => '1',
        'notCertified' => '2'
    ];
    // 会员等级
    static $cardLev = [
        'none'     => '0', // 非会员
        'gold'     => '10', // 金卡
        'platinum' => '20', // 铂金卡
        'diamonds' => '30' // 钻石卡
    ];
    public static $reserveStatusId = ['finished' => 'RS_FINISHED', 'expired' => 'RS_EXPIRED', 'canceled' => 'RS_CANCELED'];
    public static $comefromCfg = [
        //'注册来源' => '签到来源',
        2 => 4,
        5 => 2,
        6 => 1, //摇一摇签到
    ];

    /**
     * 文件类型
     */
    public static $fileType = array(
        "image" => 1,
        "audio" => 2,
        "video" => 3,
        "text"  => 4,
        "file"  => 5,
        "pdf"   => 6
    );
    //复合发送条件的notice_task
    //1.激活 2.处方完成 3.预约完成 4.预约取消 5.预约过期
    static $memberReserveActionArray = [
        'RS_BEFORESHOP' => 3,
        'RS_CANCELED'   => 4,
        'RS_EXPIRED'    => 5,
    ];
    
    // 撤销到店人脸的原因,和标记取消人脸授权的原因: 
    // 1.人脸和会员不匹配  2.店员  3.人脸相似
    public static $cancelArriveReasonArray = [
        'storeMember'  => 1,
        'differentWithSelf' => 2, 
        'sameWithOther' => 3, 
    ];

}
